<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>

<!DOCTYPE html>
<html>
<c:set var="ctx" value="${pageContext.request.contextPath }"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>切换角色</title>

</head>
<lui:context/>
<u:View basePath="/res-system/index/" userJS="switchRole" userCSS="switchRole" delayLoadJs="false">
<body>
	<lui:dialogBody>
		<form method="post" action="${ctx }/index" hidden="hidden" id='switchRoleFrm' target="_top">
	  		<input hidden="hidden" name='roleId'>
	  	</form>
	  	<div>
	  		<ul class='nav nav-tabs nav-stacked switch-role-list'>
	  		<c:forEach var='item' items='${sessionScope.user.roles }' varStatus='status'>
	  			<li>
	  				<a href='javascript:void(0);' onclick='SwitchRolePage.switchRole(this)' data-value='${item.roleId}' data-text='${item.roleName}'><c:out value='${item.roleName}'></c:out></a>
	  			</li>
	  		</c:forEach>
	  		</ul>
	  	</div>
	</lui:dialogBody>
	<%-- <lui:dialogFooter>
       <button class="btn btn-primary m-btn" type="button" onclick="SwitchRolePage.switchRole()">切换</button>
       <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
    </lui:dialogFooter> --%>
</body>
</u:View>
</html>